<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 函数声明的原型-->object
        // 函数表达式的原型-->undefined
        function giveLydiaPizza() {
            return "Here is pizza!"
        }

        const giveLydiaChocolate = () => "Here's chocolate... now go hit the gym already."
        console.log(giveLydiaPizza.prototype)
        console.log(giveLydiaChocolate.prototype)
    </script>
</body>

</html>